package org.example.openfeign.consumer.controller;

import org.example.openfeign.consumer.feignapi.ProviderClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 季舟
 * @Date 2024-09-13 14:36
 */
@RestController
@RequestMapping("/consumer")
public class ConsumerController {

    @Autowired
    ProviderClient providerClient;

    @GetMapping("/feignTest")
    public String test() {
        return providerClient.hello()+"dddyy";
    }
}
